/* 基础样式 */
body {
    background: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ff7f50;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-btn {
    position: relative;
    right: 45px;
    top: 2px;
    background: none;
    border: none;
    font-size: 18px;
    color: #ff7f50;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #e74c3c;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-condition {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.condition-new { background: #2ecc71; color: white; }
.condition-good { background: #f1c40f; color: #333; }
.condition-used { background: #e67e22; color: white; }

.meta-info {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination a {
    color: #ff7f50;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 2px;
}

.pagination a:hover {
    background: #ff7f50;
    color: white;
}